package com.easyexcel.service;

import com.easyexcel.dao.User;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @Copyright (C), 2018-2020
 * @FileName: UserService
 * @Author: 杜景涛
 * @Date: 2020/12/23 14:57
 * @Description:
 */
public interface UserService {
    /**
     * 批量插入
     *
     * @param users
     */
    void insertBatch(List<User> users);

    /**
     * 导出数据
     *
     * @param response
     */
    void simpleWrite(HttpServletResponse response);

    /**
     * 分页导出数据
     *
     * @param response
     */
    void pageWrite(HttpServletResponse response);

    /**
     * 分页多sheet导出数据
     *
     * @param response
     */
    void pageWriteSheets(HttpServletResponse response);

    /**
     * 发送excel到邮箱
     *
     * @param response
     */
    void writeSendMail(HttpServletResponse response) throws IOException;
}
